const UserModel = require('../models/user')
const bcrypt = require('bcryptjs')
const formidable = require("formidable")
const fs = require('fs')
const xlsx = require('node-xlsx');

 
module.exports = {  
    // 登录
    // async login(ctx, next) {
    //     // console.log(ctx.request.body);
    //     let { account, password } = ctx.request.body
    //     const user = await UserModel.findOne({ account })
    //     if((await UserModel.find({ account })).length && await bcrypt.compare(password, user.password)){
    //         ctx.body = {
    //             msg: '登录成功',
    //             body: user,
    //         }
    //     }else ctx.body = { msg: '用户名/密码错误' }

    // },
}